package com.gec.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gec.model.entity.SysBuild;

import com.gec.model.vo.SysBuildQueryVo;
import com.gec.system.mapper.SysBuildMapper;
import com.gec.system.service.SysBuildService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 楼栋表 服务实现类
 * </p>
 *
 * @author Liangxj
 * @since 2023-12-06
 */
@Service
public class SysBuildServiceImpl extends ServiceImpl<SysBuildMapper, SysBuild> implements SysBuildService {

    @Autowired
    private SysBuildMapper sysBuildMapper;

    @Override
    public IPage<SysBuild> selectPage(IPage<SysBuild> iPage, SysBuildQueryVo sysBuildQueryVo) {

        return this.sysBuildMapper.selectPage(iPage, sysBuildQueryVo);
    }

    @Override
    public int selectPeopleCount() {
        return this.sysBuildMapper.selectPeopleCount();
    }

    @Override
    public int selectHouseCount() {
        return this.sysBuildMapper.selectHouseCount();
    }
}
